

package com.lh.api.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 注册表单
 *
 * @author Mark sunlightcs@gmail.com
 */
@Data
@ApiModel(value = "注册表单")
public class RegisterForm {

    @ApiModelProperty(value = "手机号",allowEmptyValue=false,required = true)
    @NotBlank(message="Mobile No. is required")
    private String mobile;

    @ApiModelProperty(value = "密码",allowEmptyValue=false,required = true)
    @NotBlank(message="Password is required")
    @Length(min = 6, message = "Password must be at lesat 6 characters")
    private String password;


    @ApiModelProperty(value = "验证码",allowEmptyValue=false,required = true)
    @NotBlank(message="OTP is required")
    private String code;
}
